{include file="public/header" /}
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <!-- Panel Other -->
    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <h5>分类列表</h5>
        </div>
        <div class="ibox-content">
            <!--搜索框开始-->
            <div class="row">
                <div class="col-sm-12">
                    <div  class="col-sm-2" style="width: 100px">
                        <div class="input-group" >
                            <a href="{:url('addCate')}"><button class="btn btn-outline btn-primary" type="button">添加分类</button></a>
                        </div>
                    </div>
                </div>
            </div>
            <!--搜索框结束-->
            <div class="hr-line-dashed"></div>

            <div class="example-wrap">
                <div class="example">
                    <table class="table table-bordered table-hover">
                        <thead>
                            <tr class="long-tr">
                                <th>ID</th>
                                <th>分类名称</th>
                                <th>排序</th>
                                <th>状态</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody id="list-content">
                        {volist name="data.cates" id="vo"}
                            <tr class="long-td">
                                <td>{$vo.id}</td>
                                <td>{$vo.name}</td>
                                <td>{$vo.sort}</td>
                                <td>
                                {eq name="vo.status" value="1"}
                                    <a class="red" href="javascript:;">
                                        <div id="zt{{d[i].id}}"><span class="label label-info">开启</span></div>
                                    </a>
                                {else/}
                                    <a class="red" href="javascript:;">
                                        <div id="zt{{d[i].id}}"><span class="label label-danger">禁用</span></div>
                                    </a>
                                {/eq}
                                </td>
                                <td>
                                    <a href="{:url('editCate',array('id'=>$vo.id))}" class="btn btn-primary btn-xs"><i class="fa fa-paste"></i> 修改</a>&nbsp;&nbsp;
                                    <!-- <a href="javascript:;" class="btn btn-danger btn-xs"><i class="fa fa-trash-o"></i> 删除</a> -->
                                </td>
                            </tr>
                        {/volist}
                        </tbody>
                    </table>
                    {$data.page}
                </div>
            </div>
            <!-- End Example Pagination -->
        </div>
    </div>
</div>
<!-- End Panel Other -->
</div>

{include file="public/footer" /}

<script type="text/javascript">



</script>
</body>
</html>
